package edu.xidian.bdilab.jrbigdata.controller.enterprise;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import edu.xidian.bdilab.jrbigdata.service.enterprise.checkProductRequest.CheckProductRequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CheckProductRequest {

    @Autowired
    CheckProductRequestService checkProductRequestService;

    @RequestMapping(value = "enterprise/checkProductRequest", method = RequestMethod.POST)
    public ResponseResult checkProductRequest(@RequestParam String socialCode)
    {
        ResponseResult responseResult= checkProductRequestService.checkProductRequest(socialCode);
        return  responseResult;
    }

}
